import Vue from 'vue';
import App from './App.vue';
import router from './router';
import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import ECharts from 'vue-echarts'
import { use } from "echarts/core";

import {
  CanvasRenderer
} from 'echarts/renderers';
import {
  GridComponent,
  TooltipComponent,
  TitleComponent,
  LegendComponent
} from 'echarts/components';
import {
  BarChart,
  LineChart,
  PieChart,
  ScatterChart,
  PictorialBarChart,
  RadarChart,
  FunnelChart,
  GaugeChart
} from 'echarts/charts';

use([
  CanvasRenderer,
  GridComponent,
  TooltipComponent,
  TitleComponent,
  LegendComponent,
  BarChart,
  LineChart,
  PieChart,
  ScatterChart,
  PictorialBarChart,
  RadarChart,
  FunnelChart,
  GaugeChart
]);

Vue.component('v-chart', ECharts)

Vue.config.productionTip = false;

Vue.use(Avue);
Vue.use(ElementUI);

new Vue({
  router,
  render: h => h(App),
}).$mount('#app');
